// 引入 request 方法，假设 request 方法已经定义在某个工具文件中
import request from '/@/utils/request';
import { UserMenuInput } from '../models';
// 定义 API 路径枚举
enum Api {
    SysUserMenuAdd = '/sysUserMenu/add',
    SysUserMenuDeleteUserMenu = '/sysUserMenu/deleteUserMenu',
    SysUserMenuUserMenuIdList = '/sysUserMenu/userMenuIdList',
    SysUserMenuUserMenuList = '/sysUserMenu/userMenuList',
}

// 定义 API 方法
export const apiSysUserMenuAddPost = (body?: UserMenuInput) =>
    request({
        url: Api.SysUserMenuAdd,
        method: 'post',
        data: body,
    });

export const apiSysUserMenuDeleteUserMenuPost = (body?: UserMenuInput) =>
    request({
        url: Api.SysUserMenuDeleteUserMenu,
        method: 'post',
        data: body,
    });

export const apiSysUserMenuUserMenuIdListGet = () =>
    request({
        url: Api.SysUserMenuUserMenuIdList,
        method: 'get',
    });

export const apiSysUserMenuUserMenuListGet = () =>
    request({
        url: Api.SysUserMenuUserMenuList,
        method: 'get',
    });